package com.example.rxjava2;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2018/3/12/012.
 */
public interface Api {
    //    http://api.tianapi.com/social/?key=861a794733dd2b057e415d822bef9586&num=10
    @GET("/social/")
    Observable<News> getNews(@Query("key") String key
                                    , @Query("num") int num);
}
